﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.IO;
using System.Xml.Linq;
using System.Xml.XPath;
using HtmlExtractor;
using HtmlExtractor.Output;
using System.Linq;
using SLHtmlExtractor.ObjectOutput;
using Reader.Domain;
namespace Reader
{
    public static class Context
    {  
        public static readonly XNamespace ImageToolsNamespace = "clr-namespace:ImageTools.Controls;assembly=ImageTools.Controls";
        public static readonly XNamespace DefaultNamespace = "http://schemas.microsoft.com/winfx/2006/xaml/presentation";
        public static bool IsLoacalFile(string path)
        {
             Uri u = new System.Uri(path);
            //判断远程
             if (u.Scheme == "file" && u.Host == "")
                 return true;
             else
                 return false;
        }
        
    }
}
